package com.live.stamp.base.common;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class MySQLDialect extends AbstractDialect
{
  private final Logger logger = LoggerFactory.getLogger(MySQLDialect.class);

  public String getPaginationString(String sql, int begin, int end)
  {
    sql = trim(sql);

    StringBuffer stringbuffer = new StringBuffer(sql);
    stringbuffer.append(" LIMIT ").append(begin).append(" , ").append(end);

    this.logger.debug("MySQLDialect execute sql:" + stringbuffer.toString());

    return stringbuffer.toString();
  }
}